package pri.black.dogview.component;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class CacheService {

    static Map<String, Object> cache = new HashMap<>();

    public void set(String key, Object data) {
        cache.put(key, data);
    }

    public Object get(String key) {
        return cache.get(key);
    }

    public void remove(String key){
        cache.remove(key);
    }
}
